package com.mk.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AuthCheck {

    // 必须是指定角色才能访问
    @AliasFor("role")
    String value() default "";

    @AliasFor("value")
    String role() default "";

    String message() default "";
}
